import { defineStore } from 'pinia';
import { ref } from 'vue'
export const useLangStore = defineStore('lang', () => {
  const lang = ref('zh-TW');

  const setLang = (type) => {
    lang.value = type;
    localStorage.setItem('currentLanguage', type);
  };

  return { lang, setLang };
});
